package QizhongKaoshi;

public class Kaoshi5 {
    public static void main(String[] args) {
        Person p=new Person();
        p.Person("张三",18);
        p.talk();
    }
}
class Person{
    private String name;
    private int age;
    void Person(String name,int age){
        this.name=name;
        this.age=age;
    }
    void talk(){
        System.out.println("我是："+name+"，今年："+age+"岁");
    }
}
